<?php
/**
 * This file belongs to huakaili project
 *
 * @author jszhang
 */
?>


       	  <div class="right_bar">
       	  	<?php
		if( $errmsg->size('black_list') > 0 ) $errmsg->output('black_list');
		?>
            	<div class="orange_box">
                	
                    <div class="orange_middle">
                    	<div class="orange_title">
                        	<h1>黑名单</h1>
                             
                        </div>
                        
                    </div>
					<div class="blackList_box">
                    	<div class="blackList_item">
						
							<div class="ItemTitle">黑名单中的用户将：</div>
							<div class="ItemList">
								<li><span class="hint">不能给我发站内消息</span></li>
								<li><span class="hint">不能对我进行回应</span></li>
							 </ul>
							 </div>
							<br>
							<div class="ItemTitle">我的黑名单：</div>
							
							<div class="ItemList">
							 <ul>
							   <?php
									if( $pageVars['blacklists'] ){
										foreach( $pageVars['blacklists'] as $item ){
								?>
									<li><span class="dot">•</span> <a href="#"><?php secho( $item['nick'] ); ?></a>  
										<a href="<?php echo edp_href_link(PAGENAME_USER_SETTING,'subpage=black_list&blackid='.$item['id']); ?>">[撤销]</a>
									</li>
									<?php
										}
									}
									else{
								?>
										<li><span class="dot">•</span> 黑名单为空</li>
									<?php
									}
								?>
							</ul>
							</div>
							
							<br>
							<div class="ItemList">
								<form method="POST" action="<?php echo edp_href_link(PAGENAME_USER_SETTING,'subpage=black_list');?>">
									<input type="hidden" name="id" value="<?php echoPageVar($pageVars, "id")?>" >
									<input type="hidden" id="action" name="action" value="black_list" >			
									<input type="text" id="blockusername" name="blockusername" style="color: Gray;" value="请输入昵称" class="input_1"/>
									<input type="submit" value="加入黑名单" />
								</form>
							</div>
							
						 </div>
                    </div>                         
                  
                </div>
            	
              
            </div>
            
           